export enum DIMENSION {
  '默认维度' = 'sd',
  '切换维度' = 'ds',
}

export const FIRELOW = 394.9;

export const PROVINCES = {
  shanxi: '山西省',
  shandong: '山东省',
  gansu: '甘肃省',
};

export const TYPE_OPTIONS = [
  { label: '全部', value: 0 },
  { label: '风电', value: 3 },
  { label: '光伏', value: 4 },
];

export const SORT = {
  desc: 'desc',
  asc: 'asc',
};

export const indexMap: any = {
  reckoningQuantity: { name: '综合电量', type: 'bar', color: '#5795CD' },
  averageFeedinPrice: {
    name: '综合电价',
    type: 'line',
    color: '#E6E963',
    props: {
      symbol: 'circle',
    },
  },
  _averagePrice: {
    name: '算术均价',
    type: 'dashed',
    color: '#F6925A',
    props: {
      symbol: 'circle',
    },
  },
  superpositionLongTermQuantity: {
    name: '叠加后中长期',
    type: 'bar',
    color: '#2174FF',
    props: { stack: 'one' },
  },
  dayaheadClearingPlusSpotQuantity: {
    name: '日前正现货电量',
    type: 'bar',
    color: '#3CB1FB',
    props: { stack: 'one' },
  },
  dayaheadClearingMinusSpotQuantity: {
    name: '日前负现货电量',
    type: 'bar',
    color: '#075288',
    props: { stack: 'one' },
  },
  realtimeClearingPlusSpotQuantity: {
    name: '实时正现货电量',
    type: 'bar',
    color: '#07A872',
    props: { stack: 'one' },
  },
  realtimeClearingMinusSpotQuantity: {
    name: '实时负现货电量',
    type: 'bar',
    color: '#575FA1',
    props: { stack: 'one' },
  },
  transRegionalSpotQuantity: {
    name: '跨区现货电量',
    type: 'bar',
    color: '#D29E08',
    props: { stack: 'one' },
  },
  jiusteelTransactionQuantity: {
    name: '酒钢交易电量',
    type: 'bar',
    color: '#ED8139',
    props: { stack: 'one' },
  },

  longTermEstimatedAveragePrice: {
    name: '中长期估算均价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#5795CD',
  },
  averageSpotPriceBetweenProvinces: {
    name: '省间现货均价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#2BDAE5',
  },
  positiveSpotAveragePrice: {
    name: '正现货均价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#E6E963',
  },
  negativeSpotAveragePrice: {
    name: '负现货均价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#18A0FB',
  },
  jiusteelPrice: {
    name: '酒钢电价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#F67E26',
  },
  averageFeedinPrice_2: {
    name: '平均上网电价',
    type: 'line',
    props: { symbol: 'circle' },
    color: '#30D485',
  },
};
/**
 * 前下划线 _averagePrice        表示计算
 * 中下划线 averageFeedinPrice_2 表示同名但不同系列
 */
export const chartsMap = {
  场站总览: ['reckoningQuantity', 'averageFeedinPrice', '_averagePrice'],
  电量分析: [
    'superpositionLongTermQuantity',
    'dayaheadClearingPlusSpotQuantity',
    'dayaheadClearingMinusSpotQuantity',
    'realtimeClearingPlusSpotQuantity',
    'realtimeClearingMinusSpotQuantity',
    'transRegionalSpotQuantity',
    'jiusteelTransactionQuantity',
  ],
  电价分析: [
    'longTermEstimatedAveragePrice',
    'averageSpotPriceBetweenProvinces',
    'positiveSpotAveragePrice',
    'negativeSpotAveragePrice',
    'jiusteelPrice',
    'averageFeedinPrice_2',
  ],
};
//需要展示双Y轴的图表
export const Doubel_yAxis_title = ['场站总览'];

//需要展示双Y轴的serise字段
export const Doubel_yAxis_serise = ['averageFeedinPrice', '_averagePrice'];

export const DATETYPEOPTION = [
  {
    label: '按月查询',
    value: 'months',
  },
  {
    label: '按日查询',
    value: 'days',
  },
];

export const canEditorList = ['关口表上网电量', '机侧发电量'];

export const COLIMNSTYPEOPTION = [
  '日前出清电量电费',
  '实时出清电量电费',
  '执行偏差',
  '资金池分摊',
  '收益分析',
  '电量核对',
].map((t) => ({
  label: t,
  value: t,
}));
